package com.itheima.day16.anli;

import java.lang.reflect.Method;

public class Test {
    public static void main(String[] args) throws Exception {
        Class c = CatTest.class;
        Method[] methods = c.getMethods();
        for (Method method : methods) {
        if(method.isAnnotationPresent(MyTest.class)){
            method.invoke(c.newInstance());
        }
        }

    }
}
